]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: emit 'closed' signal when dialog is closed
authorRay Strode <rstrode@redhat.com>
Wed, 20 Feb 2013 18:15:51 +0000 (13:15 -0500)
committerRay Strode <rstrode@redhat.com>
Wed, 20 Feb 2013 19:16:53 +0000 (14:16 -0500)
Opening and closing a modal dialog is not instant. There
is a transition animation involved.  When the dialog is
finished opening, it currently emits the "opened" signal.

When it's finished closing, however, it doesn't emit a
"closed" signal.  This means, there's not a good way to
know when the dialog finishes closing.

This commit adds the "closed" signal.

https://bugzilla.gnome.org/show_bug.cgi?id=694296

js/ui/modalDialog.js

index 7c99598cad6e5a4c2213bcb5411a3b5f7a62d46c..4649d6d50dce621b64abe4c5e9afb5959fe564e8 100644 (file)
@@ -265,6 +265,7 @@ const ModalDialog = new Lang.Class({
                                function() {
                                    this.state = State.CLOSED;
                                    this._group.hide();
+                                   this.emit('closed');
                                })
                          });
     },